package com.heima.utils.thread;

import com.heima.model.wemedia.pojos.WmUser;

public class WmThreadLocalUtil {

    private final static ThreadLocal<WmUser> threadLocal=new InheritableThreadLocal<>();

    public static void  setUser(WmUser user){
        threadLocal.set(user);
    }
    public static WmUser getUser(){
        return threadLocal.get();
    }

    public static void creat(){
        threadLocal.remove();
    }
}
